package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.CzEquipment;

/**
 * 设备Mapper接口
 * 
 * @author ruoyi
 * @date 2022-01-01
 */
public interface CzEquipmentMapper 
{
    /**
     * 查询设备
     * 
     * @param equipmentId 设备主键
     * @return 设备
     */
    public CzEquipment selectCzEquipmentByEquipmentId(String equipmentId);

    /**
     * 查询设备列表
     * 
     * @param czEquipment 设备
     * @return 设备集合
     */
    public List<CzEquipment> selectCzEquipmentList(CzEquipment czEquipment);

    /**
     * 新增设备
     * 
     * @param czEquipment 设备
     * @return 结果
     */
    public int insertCzEquipment(CzEquipment czEquipment);

    /**
     * 修改设备
     * 
     * @param czEquipment 设备
     * @return 结果
     */
    public int updateCzEquipment(CzEquipment czEquipment);
    
    public int batchUpdateCzEquipmentBySerialNo(List<CzEquipment> list);
    

    /**
     * 删除设备
     * 
     * @param equipmentId 设备主键
     * @return 结果
     */
    public int deleteCzEquipmentByEquipmentId(String equipmentId);

    /**
     * 批量删除设备
     * 
     * @param equipmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCzEquipmentByEquipmentIds(String[] equipmentIds);
}
